// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 51;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You emerge into the northern half of the Kranas Woods. It is at a higher altitude than the south, colder and windier. It is also more wild and less wealthy. As you get farther from the Gentle Coast, the population gets sparser and the buildings cruder.";
	text2 = "There are people here, though. You constantly hear traces of them. The sound of a broken branch. A brief glimpse of a face in the underbrush. As you travel, you are constantly being watched.";
	text3 = "The feeling of the woods only grows more oppressive. The groves up here are also angry, and their power only grows greater.";
	code =
		sf(100 + this_sec,1,1);
		if (gf(80,8) < 3)
			sf(80,8,3);

		run_game_hardcode(1005);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "As you walk down this path to the south, you have to concentrate to not trip.";
	text2 = "Roots constantly find themselves in front of your feet. Grass gets tangled around your legs. It is a struggle to not fall.";
	text3 = "It's only a nuisance, those. You easy rip yourself free from such obstructions and continue your journey.";
	code =
		sf(100 + this_sec,2,1);
	break;


begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0 && get_ran(1,0,100) < 30;
	text1 = "You hear a distant scream. It comes from the east.";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0 && get_ran(1,0,100) < 30;
	text1 = "You see flickers of light to the west. They are only barely visible through the thick foliage.";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0 && ((party_has_item(585)) || (party_has_item(586)) || (party_has_item(587)));
	text1 = "As you cross the bridge, you hear singing. It is a chorus of women, singing a wordless chant. It is incredibly lovely. You think it's coming from under the bridge.";
	text3 = "You bend over the railing and look for the singers. The sound ceases. You only see the river.";
	code =
		sf(100 + this_sec,5,1);
	break;


begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "A stiff breeze blows through the woods, chilling you to the bone. Leaves blow up and swirl around you, turning you around and blocking your vision.";
	text2 = "The tiny storm is soon quiet. When your visibility returns, however, you are confused. The forest seems different.";
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a band of Kranas warriors sitting by the fire. They patrol the roads, making sure that raiders and brigands are kept away from the main road.";
	text2 = "They watch you silently when you approach.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Greet them.";
	text1 = "They make room for you around the fire. They share weak ale and a thick stew of game and forest mushrooms. They are grim and quiet, in the typical Ro fashion.";
	text2 = "Eventually, the oldest one of them speaks. _We know of you, Haven. We knew you would come upward. Is there anything you want to know?_";
	text3 = "Once again, you sit with the Ro and share their stew. Eventually, once again, the eldest greets you.";
	action = SET_TO_1 151 13;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Move on.";
	text1 = "They neither help nor hinder you.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Any troubles lately?_";
	text1 = "_The Groves are angry. This you know. The Master of Isskale will tell you what you need to know._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_How are the woods?_";
	text1 = "_Uneven. Unpredictable. If you want to be safe, travel on the roads._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Can you give me directions?_";
	text1 = "He points to the northwest. _The two settlements are there. Our city, Isskale, is on the east side of the river. Your refuge, [F2], is on the west._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I'll be going now._";
	text1 = "You rise to leave. Most of the Ro stare silently into the fire. The leader rises and bows. _We welcome you. Safe travels._";
	action = END_TALK;

//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				